<template>
    <div class="home">
       <!-- 顶部 -->
        <div class="elm">
            <span class="name">饿了么</span>
            <span class="label">
                <div>
                    <van-icon name="weapp-nav" />
                </div>
                <div>
                    <van-icon name="close" />
                </div>
            </span>
        </div>
        <!-- 头像 -->
        <div class="avatar">
            <div class="pic">
                <van-icon name="user-circle-o" />
            </div>
            <div>
                <div>7a9aa5a077a <van-icon name="question-o" /></div>
                <div>136****9070</div>
            </div>
            <div class="user">账户设置</div>
        </div>
        <!-- 吃货卡 -->
        <div class="card">
            <div class="eat">
                <span>吃货卡</span>
                <span>|</span>
                <span>吃货豆：</span>
                <span>1461</span>
            </div>
            <div class="texts"><span>升级超级吃货卡，每月得无门槛红包，下单5倍饭吃货豆</span></div>
        </div>
        <!-- 红包 -->
        <div class="pack">
            <div>
                <div><van-icon name="cash-on-deliver" color='red'/> 红包</div>
                <div>7张今日到期</div>
            </div>
            <div>
                <div><van-icon name="credit-pay" color='red' /> 余额</div>
                <div><span>0</span>元</div>
            </div>
        </div>
        <!-- 常用工具 -->
        <div class="tool">
            <div class="tooltop">常用工具</div>
            <div class="toolbottom">
                <div>
                    <div><van-icon name="location-o" /> </div>
                    <div>我的地址</div>
                </div>
                <div>
                    <div>
                        <van-icon name="service-o" />
                    </div>
                    <div>我的客服</div>
                </div>
                <div @click="$router.push('/coll')">
                    <div>
                        <van-icon name="like-o" />
                    </div>
                    <div >店铺关注</div>
                </div>
                <div>
                    <div>
                        <van-icon name="star-o" />
                    </div>
                    <div>评价有礼</div>
                </div>
            </div>
            </div>
        </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.home{
    background-color: #f4f5f4;
    overflow: hidden;
    height: 100%;
    .elm {
        width: 95%;
        margin: 0 2.5%;
        display: flex;
        justify-content: space-between;
        margin-top: 30px;
        background-color: #f4f5f4;
        .name {
            color: black;
        }

        .label {
            // width: 60px;
            // height: 15px;
            background-color: rgba($color: #fafafa, $alpha: .3);
            border-radius: 10px;
            display: flex;

            div {
                margin: 4px 6px;
                color: black;
            }
        }
    }
    .avatar{
        display: flex;
        width: 95%;
        margin: 3% 2.5%;
        .pic{
            font-size: 39px;
        }
        .user{
            border: 1px solid black;
            border-radius: 8px;
            margin-left: 130px;
            height: 20px;
            margin-top: 10px;
        }
    }
    .card{
        background-image:linear-gradient(to right,rgb(27, 150, 231),rgb(66, 128, 209),rgb(91, 161, 196)) ;
        width: 95%;
        margin: 3% 2.5%;
        border-radius: 5px;
        padding: 10px 0;
        .eat{
            color: #ffffff;
            margin-left: 30px;
            span{}
            &:first-child{
                font-size: 20px;
            }
            &:nth-child(2){
                font-size: 20px;
                color: #dddddd;
            }
            &:nth-child(3){
                font-size: 14px;
                color: #dddddd;
            }
        }
        .texts{
            color: #dedede;
            margin-left: 30px;
            font-size: 12px;
        }
    }
    .pack{
        display: flex;
        justify-content: space-around;
        background-color: white;
        width: 95%;
        margin: 5% 2.5%;
        border-radius: 5px;
        padding: 10px 0;
        text-align: center;
    }
    .tool{
        width: 95%;
        margin: 5% 2.5%;
        border-radius: 5px;
        padding: 10px 0;
        background-color: white;
        .toolbottom{
            display: flex;
            justify-content: space-around;
            text-align: center;
        }
        .tooltop{
            margin: 4px 0;
            margin-left: 14px;
        }
    }
}
</style>